//
//  ALMainAPI.m
//  AwesomeLoan
//
//  Created by tanxiaokang on 2017/11/23.
//  Copyright © 2017年 RunNong. All rights reserved.
//

#import "ALMainAPI.h"

@implementation ALMainAPI

+ (void)jumpUserMessageFromVC:(id)fromVC {
    
//    ALUserMessageViewController *vc = [[ALUserMessageViewController alloc] init];
//    [self jumpToVC:vc fromVC:fromVC fron:nil animated:YES completion:nil];
}

+ (void)pushViewControllerToVC:(UIViewController *)toVC remFromVC:(UIViewController *)fromVC animated:(BOOL)animated{
    
    UINavigationController *navVC = fromVC.navigationController;
    NSMutableArray * array =[[NSMutableArray alloc]initWithArray:fromVC.navigationController.viewControllers];
    //删除最后一个，也就是自己
    [array removeObjectAtIndex:array.count-1];
    //添加要跳转的controller
    [array addObject:toVC];
    [navVC setViewControllers:array animated:YES];
    
}

@end
